package com.chinatechstar.base.dto;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 导入每日油井产状DTO
 *
 * @author Rei
 */
public class UploadDailyOilProdDTO {

    @NotNull(message = "缺少上传文件")
    private MultipartFile file;

    @NotNull(message = "缺少气体介质")
    @NotBlank(message = "气体介质为空")
    private String dict;

    @NotNull(message = "缺少上传油井产状日期")
    private Date date;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getDict() {
        return dict;
    }

    public void setDict(String dict) {
        this.dict = dict;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
